import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;


public class Genericcollection {

	public void dispalycollection(Collection<?> c){
		
		System.out.println("Display the "+ c.getClass().getName()+"collection value:"+c);
	}
	public <T>void addarraytocoll(T[] a,Collection<T> c){
		for(T o:a){
			c.add(o);
		}
	}
	
	public <T>void getcollectiondetails(T[] o,Collection<T> c){
		
		addarraytocoll(o, c);
		dispalycollection(c);
	}
	}
